package sg.edu.nus.iss.umpire;

import java.util.Arrays;
import java.util.Collection;

import sg.edu.nus.iss.umpire.email.CompetitionReminderJobServlet;
import sg.edu.nus.iss.umpire.email.CompetitionReminderProcessorServlet;
import sg.edu.nus.iss.umpire.email.InviteUmpiresServlet;
import sg.edu.nus.iss.umpire.email.SendConfirmEmailServlet;
import sg.edu.nus.iss.umpire.support.DispatchServlet;
import sg.edu.nus.iss.umpire.support.Service;

@SuppressWarnings("serial")
public class AuxiliaryJobsServlet extends DispatchServlet {

	@SuppressWarnings("unchecked")
	@Override
	protected Collection<? extends Class<? extends Service>> register() {
		return Arrays.asList(
				/* email services */
				CompetitionReminderJobServlet.class,
				CompetitionReminderProcessorServlet.class,
				InviteUmpiresServlet.class,
				SendConfirmEmailServlet.class);
	}
}
